From 6335a36da1dd4571d40fc3e60825019ed3c12b55 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 24 Nov 2007 22:33:38 +0000 Subject: [PATCH] Remove unused bcopy() implementation. Signed-off-by: Keir Fraser --- xen/common/string.c | 24 ---------------------- xen/include/asm-powerpc/powerpc64/string.h | 1 - 2 files changed, 25 deletions(-) diff --git a/xen/common/string.c b/xen/common/string.c index 562f6cb585..5f08f22484 100644 --- a/xen/common/string.c +++ b/xen/common/string.c @@ -294,30 +294,6 @@ void * memset(void * s,int c,size_t count) } #endif -#ifndef __HAVE_ARCH_BCOPY -/** - * bcopy - Copy one area of memory to another - * @src: Where to copy from - * @dest: Where to copy to - * @count: The size of the area. - * - * Note that this is the same as memcpy(), with the arguments reversed. - * memcpy() is the standard, bcopy() is a legacy BSD function. - * - * You should not use this function to access IO space, use memcpy_toio() - * or memcpy_fromio() instead. - */ -char * bcopy(const char * src, char * dest, int count) -{ - char *tmp = dest; - - while (count--) - *tmp++ = *src++; - - return dest; -} -#endif - #ifndef __HAVE_ARCH_MEMCPY /** * memcpy - Copy one area of memory to another diff --git a/xen/include/asm-powerpc/powerpc64/string.h b/xen/include/asm-powerpc/powerpc64/string.h index 02ef66d84c..3c3876b2fd 100644 --- a/xen/include/asm-powerpc/powerpc64/string.h +++ b/xen/include/asm-powerpc/powerpc64/string.h @@ -18,7 +18,6 @@ #define __HAVE_ARCH_STRCMP #define __HAVE_ARCH_STRCAT #define __HAVE_ARCH_MEMSET -#define __HAVE_ARCH_BCOPY #define __HAVE_ARCH_MEMCPY #define __HAVE_ARCH_MEMMOVE #define __HAVE_ARCH_MEMCMP -- 2.30.2